FROM webdevops/php-nginx:7.2

ENV COMPOSER_ALLOW_SUPERUSER=1

#ADD wkhtmltox_0.12.5-1.stretch_amd64.deb /tmp/

RUN apt-get update \
    && cd /tmp \
    && composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ \
    && docker-service-enable ssh \
    && echo 'root:123456' | chpasswd \
    && docker-run-bootstrap \
    && docker-image-cleanup

ENV WEB_DOCUMENT_ROOT=project
WORKDIR $WEB_DOCUMENT_ROOT
